package ai.neuralnet;

import java.util.Comparator;

public class BestFirstNNSort<NN extends NeuralNetwork> implements Comparator<NN>
{

    @Override
    public int compare(NN o1, NN o2)
    {
        double diff = o2.getAccScore() - o1.getAccScore();
        return diff < 0 ? -1 : diff > 0 ? 1 : 0;
    }

}
